package com.project.template.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.security.Timestamp;
import java.util.List;

/**
 * 功能：
 * 作者：lhp
 * 日期：2025/3/19 21:25
 */
@Getter
@Setter
@TableName("posts")
public class Posts extends BaseEntity{

    private Integer id;
    private String username;
    private String content;
    private String postTime;
    private  String tittle;
    private  Integer postLike;
    @TableField(exist = false)
    private List<Comments> comments;
    private Integer length=0;
    private Integer postId;
    // Getters and setters
}